package com.svse.designPattern.behaviour.state.impl;

import com.svse.designPattern.behaviour.state.context.Context;
import com.svse.designPattern.behaviour.state.service.State;

/**
 * @author LiYuhang
 * @version 0.1
 * @application
 * @Date 2020/8/8 11:12
 */
public class ConcreteStateB extends State {
    @Override
    public void Handle(Context context) {
        System.out.println("当前状态是 B.");
        context.setState(new ConcreteStateA());
    }
}
